<style lang="less">

</style>

<template>
  <el-switch   active-color="#13ce66" inactive-color="#ff4949"  v-model="currentValue" :disabled="payWayConfig.isUse && payWayConfig.isEnable"></el-switch>
</template>

<script>
export default {
  name: 'PayWayConfigEnable',
  componentName: 'PayWayConfigEnable',
  data () {
    return {
      currentValue: this.value
    };
  },
  props: {
    value: Boolean,
    payWayConfig: {}
  },
  watch: {
    currentValue (val) {
      this.$emit('input', val);
      this.$emit('change', val, this.payWayConfig);
    }
  }
};
</script>
